from django import forms
from myhomework.models import *

class CreateGroupForm(forms.ModelForm):
    class Meta:
        model = Group
        fields = ('name', 'introduction')
        
class CreateUserForm(forms.ModelForm):
    class Meta:
        model = User
        fields = ('student_id', 'password', 'name', 'email', 'school', 'major')
        
class EditUserForm(forms.ModelForm):
    class Meta:
        model = User
        fields = ('name', 'email', 'school', 'major')
        
class EditPasswordFrom(forms.Form):
    old_password = forms.CharField(max_length=100)
    new_password = forms.CharField(max_length=100)

        